Gradient and window re sizing with css [migrated]

Posted by guisasso on Pro Webmasters See other posts from Pro Webmasters or by guisasso
Published on 2012-12-03T17:21:38Z Indexed on 2012/12/04 5:23 UTC
Read the original article Hit count: 242

Filed under:
|

The situation:

A table with width set to 100%, that has a cell inside with 1000px width. The table is centered, and so is the cell.

I would like to have a gradient from left to right, and right to left that would end at the beginning of the centered cell, with the same color as the cell.

The problem is, to occupy the whole page, no matter what size the browser is, the table is set to 100%, the cell is set to 1000px so it'll never change its size,

How can i achieve, if possible, what i want, making sure that in smaller resolutions/monitors or with window re sizing, the gradient will stop at the beginning of that cell, since gradients are set with percentage?

© Pro Webmasters or respective owner

Related posts about css

Related posts about css3